<?php

namespace App\Http\Requests;

class Service extends Base
{

    public function rules()
    {
        $rules = [
            'name' => 'required',
            'thumb' => 'required',
            'cate_id' => 'required',
            'store_id' => 'required',
            'price' => 'required',
            'content' => 'required',
        ];
        return $rules;

    }

    public function messages()
    {
        return [
            'name.required' => '请填写标题',
            'thumb.required' => '请上传封面图',
            'cate_id.required' => '请选择类目',
            'store_id.required' => '请选择店铺',
            'price.required' => '请填写价格',
            'content.required' => '请填写内容',
        ];
    }
}
